import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/jhclothing";

// 查询服饰库存列表
export function listClothingInventory(query) {
  return request({
    url: '/product/clothingInventory/list',
    method: 'get',
    params: query
  })
}

// 查询服饰库存详细
export function getClothingInventory(clothingInventoryId) {
  return request({
    url: '/product/clothingInventory/' + parseStrEmpty(clothingInventoryId),
    method: 'get'
  })
}

// 新增服饰库存
export function addClothingInventory(data) {
  return request({
    url: '/product/clothingInventory',
    method: 'post',
    data: data
  })
}

// 修改服饰库存
export function updateClothingInventory(data) {
  return request({
    url: '/product/clothingInventory',
    method: 'put',
    data: data
  })
}

// 删除服饰库存
export function delClothingInventory(clothingInventoryId) {
  return request({
    url: '/product/clothingInventory/' + clothingInventoryId,
    method: 'delete'
  })
}
